package com.yz.mcd.view;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.text.Editable;
import android.text.TextWatcher;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;

import com.yz.mcd.R;

/**
 * Created by 辉 on 2017/4/12.
 */

public class Ac_findpw extends AppCompatActivity {
    @Override
    protected void onCreate( Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.layout_find);
        Button findpw_bn = (Button)findViewById(R.id.find_pw_bn);
        TextView back_login_tv = (TextView)findViewById(R.id.back_login_tv2);
        final EditText find_phone_et=(EditText)findViewById(R.id.find_phone_et);
        final EditText find_rephone_et=(EditText)findViewById(R.id.find_rephone_et);
        final EditText find_pw_et=(EditText)findViewById(R.id.find_pw_et);
        final EditText find_repw_et=(EditText)findViewById(R.id.find_repw_et);
        find_phone_et.addTextChangedListener(new TextWatcher() {
            @Override
            public void beforeTextChanged(CharSequence s, int start, int count, int after) {

            }

            @Override
            public void onTextChanged(CharSequence s, int start, int before, int count) {
                find_phone_et.setTextColor(0xFFFFFFFF);
            }

            @Override
            public void afterTextChanged(Editable s) {

            }
        });
        find_rephone_et.addTextChangedListener(new TextWatcher() {
            @Override
            public void beforeTextChanged(CharSequence s, int start, int count, int after) {

            }

            @Override
            public void onTextChanged(CharSequence s, int start, int before, int count) {
                find_rephone_et.setTextColor(0xFFFFFFFF);
            }

            @Override
            public void afterTextChanged(Editable s) {

            }
        });
        find_pw_et.addTextChangedListener(new TextWatcher() {
            @Override
            public void beforeTextChanged(CharSequence s, int start, int count, int after) {

            }

            @Override
            public void onTextChanged(CharSequence s, int start, int before, int count) {
                find_pw_et.setTextColor(0xFFFFFFFF);
            }

            @Override
            public void afterTextChanged(Editable s) {

            }
        });
        find_repw_et.addTextChangedListener(new TextWatcher() {
            @Override
            public void beforeTextChanged(CharSequence s, int start, int count, int after) {

            }

            @Override
            public void onTextChanged(CharSequence s, int start, int before, int count) {
                find_repw_et.setTextColor(0xFFFFFFFF);
            }

            @Override
            public void afterTextChanged(Editable s) {

            }
        });
        back_login_tv.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });

    }
}
